<?php

/*
 *
 *
 * This software has been made FREE by author for the interest of other developers. 
 *      I hope this will help you in coding faster and robust php code
 *            You can modify and redistribute it as you like.
 *              Your comments, suggestions and corrections 
 *                          will be highly 
 *                           APPRECIATED. 
 *                                      Author
 * @author :   Roshan Budhathoki (developer.roshan@gmail.com);
 * @URL    :   <http://www.roshanbudhathoki.com>
 *
 * 
 * Main Launcher for Myhighst Admin
 */
// Define Session name for admi
session_name('myhighst_admin');

// Start the session
session_start();

// Define Directory Separator
define('DS', DIRECTORY_SEPARATOR);

//Define Application Path
define('APP_PATH', dirname(__FILE__) . DS);
// enable debugging
ini_set('display_errors', true);
error_reporting(E_ALL);

// Fix Magic Quoties Problem

if (get_magic_quotes_gpc()) {
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    while (list($key, $val) = each($process)) {
        foreach ($val as $k => $v) {
            unset($process[$key][$k]);
            if (is_array($v)) {
                $process[$key][stripslashes($k)] = $v;
                $process[] = &$process[$key][stripslashes($k)];
            } else {
                $process[$key][stripslashes($k)] = stripslashes($v);
            }
        }
    }
    unset($process);
}

if (!file_exists('..' . DS . 'includes' . DS . 'config.php')) {
    die('No configuration Found');
}
include '..' . DS . 'includes' . DS . 'config.php';

include INCLUDE_PATH.'load.php';

echo cp_url();



?>
